package library.server;

import java.io.FileInputStream;
import java.util.Properties;

public class Config {

    private static Config instance = new Config();

    public static Config getInstance() {
        return instance;
    }

    private Config() {
        prop = new Properties();
    }
    private Properties prop;

    public void init(String filename) throws Exception {
        prop.load(new FileInputStream(filename));
    }

    public String getValue(String key) {
        return prop.getProperty(key);
    }
}
